#!/bin/sh

FILENAME="MsgrServer.exe"
exePath=""

for folder in "Release" "Debug"
do
	if [ -f "./bin/$folder/$FILENAME" ]; then
		exePath="./bin/$folder/$FILENAME"
		break
	fi
done

if [ "$exePath" = "" ]; then
	echo "File $FILENAME not found."
	exit 1;
fi

echo "Starting $exePath..."
exec $exePath
